﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="CreateUserDaiBieu.ascx.cs"
    Inherits="Portal.Administrator.Users.CreateUserDaiBieu" %>
<%@ Register Src="../UserControls/SelectDate.ascx" TagName="SelectDate" TagPrefix="uc1" %>
<asp:UpdatePanel ID="upanelEditUser" runat="server" UpdateMode="Conditional" RenderMode="Inline">
    <ContentTemplate>
        <table id="TABLE1" border="0" cellpadding="2" cellspacing="2" style="width: 100%">
            <tr>
                <td style="padding-left:20px;">
                    <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
                    <asp:ValidationSummary runat="server" ID="error_summary" />
                </td>
            </tr>
            <tr>
                <td valign="top" class="InputBox" style="width: 100%;">
                    <table border="0" cellpadding="2" cellspacing="2" width="100%">
                        <tr>
                            <td valign="top" style="width:130px;">
                                <strong>Họ tên:</strong></td>
                            <td>
                                <asp:TextBox ID="txtHoTen" runat="server" CssClass="inputTextBox150" Width="400"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtHoTen"
                                    ErrorMessage="Bạn cần nhập họ tên" Text="*"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <strong>Tên truy cập:</strong></td>
                            <td>
                                <asp:TextBox Width="400" ID="txtUsername" runat="server" CssClass="inputTextBox150"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUsername"
                                    ErrorMessage="Bạn cần nhập tên truy cập" Text="*"></asp:RequiredFieldValidator></td>
                        </tr>
                        <asp:Panel runat="server" ID="pnl_password">
                        <tr>
                            <td valign="top">
                                <strong>Mật khẩu:</strong></td>
                            <td>
                                <asp:TextBox ID="txtPassword" runat="server" CssClass="inputTextBox150" TextMode="Password"
                                    Width="400"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                                    ErrorMessage="Bạn cần nhập mật khẩu" Text="*"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <strong>Xác nhận mật khẩu:</strong></td>
                            <td>
                                <asp:TextBox ID="txtPasswordConfirm" runat="server" CssClass="inputTextBox150" TextMode="Password"
                                    Width="400"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtPasswordConfirm"
                                    ErrorMessage="Bạn cần nhập xác nhận mật khẩu" Text="*"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                                    ControlToValidate="txtPasswordConfirm" ErrorMessage="Mật khẩu xác nhận không đúng"></asp:CompareValidator></td>
                        </tr>
                        </asp:Panel>
                        <tr>
                            <td valign="top">
                                <strong>Giới tính:</strong></td>
                            <td>
                                <asp:RadioButtonList runat="server" ID="radSex" RepeatDirection="Horizontal">
                                    <asp:ListItem Text="Nam" Selected ="true" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="Nữ" Selected="false" Value="0"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <strong>Ngày sinh:</strong></td>
                            <td>
                                <uc1:SelectDate id="txtBirthDay" runat="server">
                                </uc1:SelectDate>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <strong>Email:</strong></td>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" CssClass="inputTextBox150" Width="400"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEmail"
                                    ErrorMessage="Bạn cần nhập Email" Text="*"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                    ErrorMessage="Lỗi tên email" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td style="height: 26px" valign="top">
                                <strong>Thành phố:</strong></td>
                            <td style="height: 26px">
                                <asp:DropDownList ID="dropCity" runat="server" Width="400">
                                    <asp:ListItem Value="1">H&#224; Nội</asp:ListItem>
                                    <asp:ListItem Value="2">Th&#224;nh phố Hồ Ch&#237; Minh</asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td style="height: 26px" valign="top">
                                <strong>Cơ quan:</strong>
                            </td>
                            <td style="height: 26px">
                                <asp:TextBox ID="txtCoQuan" runat="server" CssClass="inputTextBox150" Width="400"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtCoQuan"
                                    ErrorMessage="Bạn cần nhập cơ quan" Text="*"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 26px" valign="top">
                                <strong>Chức danh:</strong>
                            </td>
                            <td style="height: 26px">
                                <asp:TextBox ID="txtChucDanh" runat="server" CssClass="inputTextBox150" Width="400"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtChucDanh"
                                    ErrorMessage="Bạn cần nhập chức danh" Text="*"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 150px;" valign="top">
                                <strong>Điện thoại cơ quan:</strong></td>
                            <td>
                                <asp:TextBox ID="txtTel" runat="server" CssClass="inputTextBox150" Width="400"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtTel"
                                    ErrorMessage="Bạn cần nhập điện thoại cơ quan" Text="*">
                                </asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <strong>Địa chỉ cơ quan:</strong></td>
                            <td>
                                &nbsp;<asp:TextBox ID="txtDiaChiCoQuan" runat="server" CssClass="inputTextBox150" Height="60px"
                                    TextMode="MultiLine" Width="400"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtDiaChiCoQuan"
                                    ErrorMessage="Bạn cần nhập địa chỉ cơ quan" Text="*">
                                </asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <strong>Fax:</strong></td>
                            <td>
                                <asp:TextBox ID="txtFax" runat="server" CssClass="inputTextBox150" Width="400"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="top"><strong>Ngành nghề:(*)</strong></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <ul style="display:inline;">
                                    <li style="display:inline; float:left;">
                                        <ul style="list-style-type:none;">
                                            <li>
                                                <asp:CheckBox runat="server" ID="chk_BaoChi_TruyenHinh" Text="Báo chí/Truyền hình" />
                                            </li>
                                            <li>
                                                <asp:CheckBox ID="chk_KhoaHoc_TinHoc_VienThong" runat="server" Text="Khoa học/Tin học/Viễn thông" />
                                            </li>
                                            <li>
                                                <asp:CheckBox ID="chk_QuangCao_Maketing" runat="server" Text="Quảng cáo/Marketing" />
                                            </li>
                                        </ul>
                                    </li>
                                    <li style="display: inline; float:left;">
                                        <ul style="list-style-type: none;">
                                            <li>
                                                <asp:CheckBox ID="chk_GiaoDuc" runat="server" Text="Giáo dục" />
                                            </li>
                                            <li>
                                                <asp:CheckBox ID="chk_Luat" runat="server" Text="Luật" />
                                            </li>
                                            <li>
                                                <asp:CheckBox ID="chk_XayDung_KienTruc" runat="server" Text="Xây dựng/Kiến trúc" />
                                            </li>
                                        </ul>
                                    </li>
                                    <li style="display: inline; float:left;">                                    
                                        <ul style="list-style-type: none;">
                                            <li>
                                                <asp:CheckBox ID="chk_KeToan_KiemToan_TaiChinh" runat="server" Text="Kế toán/Kiếm toán/Tài chính" />
                                            </li>
                                            <li>
                                                <asp:CheckBox ID="chk_NganHang_BaoHiem" runat="server" Text="Ngân hàng/Bảo hiểm" />
                                            </li>
                                            <li>
                                                <asp:CheckBox ID="chk_Yte_SucKhoe_MoiTruong" runat="server" Text="Y tế/Sức khỏe/Môi trường" />
                                            </li>
                                        </ul>
                                    </li>
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td><strong>Nghành nghề khác:</strong></td>
                            <td>
                                <asp:TextBox ID="txtOtherJobs" runat="server" CssClass="inputTextBox150" Width="400"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center" class="InputBox" colspan="2" style="height: 28px">
                    <table>
                        <tr>
                            <td>
                                <asp:Button ID="btnUpdate" runat="server" CssClass="Button70" OnClick="btnCreate_Click"
                                    Text="Cập  nhật" />
                            </td>
                            <td>
                                <asp:Button ID="btnCancel" runat="server" CssClass="Button70" OnClick="btnCancel_Click"
                                    Text="Hủy" Width="84px" />
                            </td>
                            <td>
                                <asp:Button ID="Button1" runat="server" CssClass="Button70" OnClientClick="history.back(); return false;"
                                    Text="Quay lại" Width="84px" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
